|
SET CAMERA CLIP
This command will create an optional clipping plane for the camera.
SET CAMERA CLIP Camera Number, ClipOnOff, X, Y, Z, NX, NY, NZ
Camera Number
Integer
The camera number
ClipOnOff
Integer
A value of 0 means no clipping. World space clipping is 1 and 2, and shader clip space is 3 and 4. To apply a reflected view, use a value of 2 or 4.
X
Float
The X coordinate of the center of the plane
Y
Float
The Y coordinate of the center of the plane
Z
Float
The Z coordinate of the center of the plane
NX
Float
The X component of the normal describing the direction of the plane
NY
Float
The Y component of the normal describing the direction of the plane
NZ
Float
The Z component of the normal describing the direction of the plane
This command does not return a value.
This command can be used for such techniques as second camera reflection render targets, used for truely reflective water shaders. The clipping plane is specified by a position vector, followed by a normal vector, which defines a plane to be used for the clipping process. Anything below the clipping plane is not rendered by the specified camera.
No example code is provided for this command
CAMERA Commands Menu
Index
|